#' @param progressBar Logical. If \code{TRUE} a progress bar is shown as the
#'   computation completes. Default to \code{FALSE}.
